package com.hr.mes.mapper;

import com.hr.mes.entity.Form;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface FormMapper {

    List<Form> getFormSubmitList(@Param("employeeNumber") String employeeNumber, @Param("status") Integer status,
                                 @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    void addForm(Form form);

    void updateFormStatus(@Param("formId") Integer formId, @Param("status") int status);

    Form getForm(Integer formId);
}
